/**
 *  @Author MJreams
 *  @Time 2023/12/13 20:25:00
 *
**/

package options

import (
	"github.com/spf13/cobra"
)

type Options struct {
	School string
	Class  string
}

var (
	School string
	Class  string
)

func Pause(cmd *cobra.Command) {
	cmd.Flags().StringVarP(&School, "school", "s", "bjut", "Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)")
	cmd.Flags().StringVarP(&Class, "class", "c", "software", "Name of the file to write the profile to")
}

func NewOptions() *Options {
	return &Options{
		School: School,
		Class:  Class,
	}
}
